<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/V_box_order.js此处编写
 -->
 <template>
  <div>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields"
      :editFormFileds="editFormFields" :editFormOptions="editFormOptions"
      :searchFormFields="searchFormFields" :searchFormFileds="searchFormFields"
      :searchFormOptions="searchFormOptions" :table="table" :extend="extend">
    </view-grid>
  </div>
</template>

<script>
import extend from "@/extension/mall/Skating.js";
import ViewGrid from "@/components/basic/ViewGrid.vue";
var vueParam = {
  components: {
    ViewGrid,
  },
  data() {
    return {
      table: {
        key: "name",
        footer: "Foots",
        cnName: "滑校报表",
        name: "Small_statistic_skating_school",
        url: "/Small_statistic_skating_school/",
        sortName: "createDate",
      },
      extend: extend,
      editFormFields: {},
      editFormOptions: [],
      searchFormFields: { channel_type: "", product_ticket_type_name: "",date_time:''},
      searchFormOptions: [
        [
          { title: "产品分类", field: "product_ticket_type_name", type: "like" }, 
          { field: 'date_time', title: '选择日期', type: 'date', clearable:false},
          { title: "销售渠道", field: "channel_type", type: "select", dataKey: '',data: [] },
        ],
      ],
      columns: [
        {
          field: "product_id",
          title: "产品Id",
          type: "string",
          width: 220,
          require: true,
          align: "left",
        },
        {
          field: "product_name",
          title: "产品名称",
          type: "string",
          width: 220,
          require: true,
          align: "left",
        },
        {
          field: "product_ticket_type_name",
          title: "产品分类",
          type: "string",
          width: 90,
          align: "left",
        },
        {
          field: "channel_type_name",
          title: "销售渠道",
          type: "string",
          width: 100,
          align: "left",
        },
        {
          field: "payType",
          title: "支付方式",
          type: "string",
          width: 100,
          align: "left",
        },
        {
          field: "sales_price",
          title: "销售单价(元)",
          type: "string",
          width: 100,
          align: "left",
        },
        {
          field: "sales_number",
          title: "销售数量",
          type: "string",
          width: 100,
          align: "left",
        },
        {
          field: "sales_amount",
          title: "销售金额",
          type: "string",
          width: 100,
          align: "left",
        },
        {
          field: "xueyuanWC",
          title: "完成学员数",
          type: "string",
          width: 100,
          align: "left",
        },
        {
          field: "chudao",
          title: "完成教练数",
          type: "string",
          width: 100,
          align: "left",
        },
        {
          field: "veriy_amount",
          title: "完成金额",
          type: "string",
          width: 100,
          align: "left",
        },
        {
          field: "refund_number",
          title: "退款数量",
          type: "string",
          width: 100,
          align: "left",
        },
        {
          field: "refund_amount",
          title: "退款金额",
          type: "string",
          width: 100,
          align: "left",
        },
      ],
      detail: {
        cnName: "#detailCnName",
        columns: [],
        sortName: "",
        key: "",
      },
    };
  },
};
export default vueParam;
</script>
